import Vue from 'vue'
import VueRouter from 'vue-router'


Vue.use(VueRouter)

const Home = () => import('@/Views/Home')
const Notice = () => import('@/Views/Notice/notice')
const Intro = () => import('@/Views/Intro/intro')
const Join = () => import('@/Views/Join/join')
const Profile = () => import('@/Views/Profile/profile')

const routes = [
  {
    path: '/',
    component: Home
  },
  {
    path: '/home',
    name: 'home',
    component: Home
  },
  {
    path: '/notice',
    name: 'notice',
    component: Notice,
  },
  {
    path: '/intro',
    name: 'intro',
    component: Intro
  },
  {
    path: '/join',
    name: 'join',
    component: Join
  },
  {
    path: '/profile',
    name: 'profile',
    component: Profile
  }
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})



export default router